﻿using System;
using System.Collections.Generic;
using Microsoft.Services.TestTools.UITesting.Html;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;
using System.Xml;
using Microsoft.VisualStudio.TestTools.UITesting;
using System.Windows.Input;



namespace TestBing
{
    public partial class Bing : Page
    {
        #region Variables
        private string _textToSearch;
      
        #endregion

        #region Properties
        public string TextToSearch
        {
            get { return _textToSearch; }
            set { _textToSearch = value; }
        }

       
        #endregion

        #region Methods
        public void Search()
        {
            Keyboard.SendKeys(textBoxSearch, TextToSearch, ModifierKeys.None);
            buttonSearch.Click();
        }
       
        #endregion
    }

}
